//
//  Forum_BhotCell.m
//  Pacific_Computer
//
//  Created by 范琦 on 14-12-23.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Forum_BhotCell.h"
#import "UIColor+AddColor.h"

@implementation Forum_BhotCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.main = [[UILabel alloc]init];
        [self.contentView addSubview:self.main];
//        self.main.backgroundColor = [UIColor greenColor];
        [_main release];
        
        self.count = [[UILabel alloc]init];
        [self.contentView addSubview:self.count];
//        self.count.backgroundColor = [UIColor cyanColor];
        [_count release];
        
        self.vieww = [[UIView alloc]init];
        [self.contentView addSubview:self.vieww];
        self.vieww.backgroundColor = [UIColor huiseColor];
        [_vieww release];
        
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.main.frame = CGRectMake(5, 5, self.contentView.bounds.size.width - 10, self.contentView.bounds.size.height / 2);
    self.count.frame = CGRectMake(5, self.main.bounds.size.height, self.contentView.bounds.size.width - 10, self.contentView.bounds.size.height / 3);
    self.vieww.frame = CGRectMake(0, self.count.frame.origin.y + self.count.bounds.size.height, self.contentView.bounds.size.width, self.contentView.bounds.size.height - self.count.frame.origin.y - self.count.bounds.size.height);

}
- (void)dealloc
{
    [_main release];
    [_vieww release];
    [_count release];
    [super dealloc];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
